package visual;


import java.util.ArrayList;

import javax.swing.JFrame;
 
/**
 * 
 * This class generates the statistics's Graph
 */

public class StatisticGraphicNBCreature {
	private DynamicGraph demo;
	
	public StatisticGraphicNBCreature(ArrayList<String> pluginNames, ArrayList<ArrayList<Integer>> datas) {
		
		demo = new DynamicGraph("Dynamic Data Demo", pluginNames);
        demo.pack();
        demo.setLocation(640,150);
	}
	
	public boolean isVisible() {
		return demo.isVisible();
	}
	
	public void setVisible(boolean b) {
		this.demo.setVisible(b);
	}
	
	public void refresh(ArrayList<ArrayList<Integer>> datas) {
		this.demo.refreshSeries(datas);
	}
	
	public void restart() {
		this.demo.restart();
	}
	
}